package cn.shiwei.basic.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PageList<T> {
    // {"totals": 11, "data": [{},{},{}]}
    // 总条数
    private Integer totals = 0;
    // 当前页数据
    private List<T> data = new ArrayList<T>();

    public PageList() {
    }

    public PageList(Integer totals, List<T> data) {
        this.totals = totals;
        this.data = data;
    }
}
